package org.example.service;

import com.zaxxer.hikari.HikariDataSource;
import lombok.var;
import org.example.domain.Users;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【users(用户表)】的数据库操作Service
* @createDate 2025-07-15 14:52:30
*/
public interface UsersService extends IService<Users> {

    public static void main(String[] args) {
        HikariDataSource ds = new HikariDataSource();
        ds.setJdbcUrl("jdbc:mysql://localhost:3306/msb_course_db?useSSL=false&serverTimezone=Asia/Shanghai");
        ds.setUsername("root");
        ds.setPassword("Flzxsqc,./Ysyhljt!!@asd]]");
        try (var conn = ds.getConnection()) {
            System.out.println("Connected: " + conn.getCatalog()); // 应输出 msb_course_db
        } catch (Exception e) {
            e.printStackTrace(); // 若报错，说明直连都有问题
        }
    }
}
